/* 
@扫码方式
*/
import jzH5ScanCode from '../../public/jz-h5-scanCode/js/index.js'
export const scan = (): any => {
  return new Promise((resolve, reject) => {
    jzH5ScanCode.scanCode({
      success: (res) => {
        resolve(res.result)
      },
      fail: (err) => {
        reject(err.errMsg)
      }
    })
  })
}